﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using YouWei.Infrastructure.Entity;
using YouWei.Infrastructure.Enums;

namespace YouWei.Infrastructure.Models
{
    public class SmsCardDto:SmsCard
    {
        /// <summary>
        /// 通信制式类型
        /// </summary>
        public string TelTypeTxt {
            get {
                return Utility.EnumHelper.GetEnumDesc(typeof(SmsCardTelTypeEnum), TelType);
            }
        }


        /// <summary>
        /// 状态文本
        /// </summary>
        public string StatusText
        {
            get
            {
                string szReturn = string.Empty;
                if (IsDeleted == 0)
                {
                    szReturn = "正常";
                }
                else if (IsDeleted == 1)
                {
                    szReturn = "已删除";
                }
                return szReturn;
            }
        }
    }
}